package com.riko.comic.core.converter;

import org.springframework.core.convert.converter.Converter;

import java.time.LocalDateTime;

/**
 * 日期转换器
 *
 * @author riko
 * @since 2021/10/29
 */
public class LocalDateTimeConverter implements Converter<String, LocalDateTime> {

    @Override
    public LocalDateTime convert(String s) {
        return LocalDateTime.parse(s);
    }
}
